package com.css.zfzx.fxpg.modules.percent.casualty.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.percent.casualty.repository.entity.FxCasualtyPercentEntity;
import com.css.zfzx.fxpg.modules.percent.casualty.viewobjects.FxCasualtyPercentQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-13
 */

public interface FxCasualtyPercentService {

    JSONObject queryFxCasualtyPercents(FxCasualtyPercentQueryParams queryParams, int curPage, int pageSize);

    FxCasualtyPercentEntity getFxCasualtyPercent(String id);

    FxCasualtyPercentEntity saveFxCasualtyPercent(FxCasualtyPercentEntity fxCasualtyPercent);

    FxCasualtyPercentEntity updateFxCasualtyPercent(FxCasualtyPercentEntity fxCasualtyPercent);

    void deleteFxCasualtyPercents(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    List<FxCasualtyPercentEntity> listFxCasualtyPercents(FxCasualtyPercentQueryParams queryParams);

    void initialize();

    String exportExcel(FxCasualtyPercentQueryParams queryParams, HttpServletResponse response);

    String importExcel(MultipartFile file);
}
